home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XFocusChangeEvent.z / XFocusChangeEvent
Encoding:
Text File  |  1998-10-30  |  5.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXFFFFooooccccuuuussssCCCChhhhaaaannnnggggeeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXFFFFooooccccuuuussssCCCChhhhaaaannnnggggeeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XFocusChangeEvent - FocusIn and FocusOut event structure
  10.  
  11.      SSSSTTTTRRRRUUUUCCCCTTTTUUUURRRREEEESSSS
  12.           The structure for _F_o_c_u_s_I_n and _F_o_c_u_s_O_u_t events contains:
  13.  
  14.           typedef struct {
  15.                int type;                /* FocusIn or FocusOut */
  16.                unsigned long serial;    /* # of last request processed by server */
  17.                Bool send_event;         /* true if this came from a SendEvent request */
  18.                Display *display;        /* Display the event was read from */
  19.                Window window;           /* window of event */
  20.                int mode;                /* NotifyNormal, NotifyGrab, NotifyUngrab */
  21.                int detail;
  22.                                         /*
  23.                                         * NotifyAncestor, NotifyVirtual, NotifyInferior,
  24.                                         * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
  25.                                         * NotifyPointerRoot, NotifyDetailNone
  26.                                         */
  27.           } XFocusChangeEvent;
  28.           typedef XFocusChangeEvent XFocusInEvent;
  29.           typedef XFocusChangeEvent XFocusOutEvent;
  30.  
  31.           When you receive these events, the structure members are set
  32.           as follows.
  33.  
  34.           The type member is set to the event type constant name that
  35.           uniquely identifies it.  For example, when the X server
  36.           reports a _G_r_a_p_h_i_c_s_E_x_p_o_s_e event to a client application, it
  37.           sends an _X_G_r_a_p_h_i_c_s_E_x_p_o_s_e_E_v_e_n_t structure with the type member
  38.           set to _G_r_a_p_h_i_c_s_E_x_p_o_s_e.  The display member is set to a
  39.           pointer to the display the event was read on.  The
  40.           send_event member is set to _T_r_u_e if the event came from a
  41.           _S_e_n_d_E_v_e_n_t protocol request.  The serial member is set from
  42.           the serial number reported in the protocol but expanded from
  43.           the 16-bit least-significant bits to a full 32-bit value.
  44.           The window member is set to the window that is most useful
  45.           to toolkit dispatchers.
  46.  
  47.           The window member is set to the window on which the _F_o_c_u_s_I_n
  48.           or _F_o_c_u_s_O_u_t event was generated.  This is the window used by
  49.           the X server to report the event. The mode member is set to
  50.           indicate whether the focus events are normal focus events,
  51.           focus events while grabbed, focus events when a grab
  52.           activates, or focus events when a grab deactivates.  The X
  53.           server can set the mode member to _N_o_t_i_f_y_N_o_r_m_a_l,
  54.           _N_o_t_i_f_y_W_h_i_l_e_G_r_a_b_b_e_d, _N_o_t_i_f_y_G_r_a_b, or _N_o_t_i_f_y_U_n_g_r_a_b.
  55.  
  56.           All _F_o_c_u_s_O_u_t events caused by a window unmap are generated
  57.           after any _U_n_m_a_p_N_o_t_i_f_y event; however, the X protocol does
  58.           not constrain the ordering of _F_o_c_u_s_O_u_t events with respect
  59.           to generated _E_n_t_e_r_N_o_t_i_f_y, _L_e_a_v_e_N_o_t_i_f_y, _V_i_s_i_b_i_l_i_t_y_N_o_t_i_f_y, and
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXFFFFooooccccuuuussssCCCChhhhaaaannnnggggeeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXFFFFooooccccuuuussssCCCChhhhaaaannnnggggeeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           _E_x_p_o_s_e events.
  75.  
  76.           Depending on the event mode, the detail member is set to
  77.           indicate the notify detail and can be _N_o_t_i_f_y_A_n_c_e_s_t_o_r,
  78.           _N_o_t_i_f_y_V_i_r_t_u_a_l, _N_o_t_i_f_y_I_n_f_e_r_i_o_r, _N_o_t_i_f_y_N_o_n_l_i_n_e_a_r,
  79.           _N_o_t_i_f_y_N_o_n_l_i_n_e_a_r_V_i_r_t_u_a_l, _N_o_t_i_f_y_P_o_i_n_t_e_r, _N_o_t_i_f_y_P_o_i_n_t_e_r_R_o_o_t, or
  80.           _N_o_t_i_f_y_D_e_t_a_i_l_N_o_n_e.
  81.  
  82.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  83.           XAnyEvent(3X11), XButtonEvent(3X11),
  84.           XCreateWindowEvent(3X11), XCirculateEvent(3X11),
  85.           XCirculateRequestEvent(3X11), XColormapEvent(3X11),
  86.           XConfigureEvent(3X11), XConfigureRequestEvent(3X11),
  87.           XCrossingEvent(3X11), XDestroyWindowEvent(3X11),
  88.           XErrorEvent(3X11), XExposeEvent(3X11),
  89.           XGraphicsExposeEvent(3X11), XGravityEvent(3X11),
  90.           XKeymapEvent(3X11), XMapEvent(3X11), XMapRequestEvent(3X11),
  91.           XPropertyEvent(3X11), XReparentEvent(3X11),
  92.           XResizeRequestEvent(3X11), XSelectionClearEvent(3X11),
  93.           XSelectionEvent(3X11), XSelectionRequestEvent(3X11),
  94.           XUnmapEvent(3X11), XVisibilityEvent(3X11)
  95.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.